home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 203 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: krotoff@such.srcc.msu.su (Alexander Krotoff)
  2. Message-ID: <4eo2mk$7tc@boy.nmd.msu.ru>
  3. X-Original-Date: 31 Jan 1996 18:43:16 +0300
  4. Path: in1.uu.net!bounce-back
  5. Date: 01 Feb 96 01:53:57 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: inconsistance in over.over
  9. Organization: Research Computer Center, Moscow State University
  10. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  11.     iQBFAgUBMRAdQuEDnX0m9pzZAQEzLwF/bdm0639czwu7Aj/pW7IMMLxRWuE6KKrh
  12.     illcgIarnxWnBkTfu1HCNrbMCXEemPv+
  13.     =MO6v
  14.  
  15. Hello c++ gurus,
  16.  
  17. There is small inconsistance in the Oct 95 WP:
  18. -----------------------------------------------------------------------
  19. 13.4    Address of overloaded function    [over.over]
  20. In the example on the end of the section:
  21.  
  22.     int (X::*p5)(int)  = &(X::f);    // error: wrong syntax for</B>
  23.                     // pointer to member</B>
  24.     int    (*p6)(long) = &(X::f);    // OK</B>1
  25.  
  26. Error: qualified-id enclosed in parentheses.
  27. -----------------------------------------------------------------------
  28. 5.3.1    Unary operators            [expr.unary.op]
  29.  
  30. 3    A pointer to member is only formed when an explicit & is used and
  31.     its operand is a qualified-id not enclosed in parentheses.
  32. -----------------------------------------------------------------------
  33.  
  34. I suppose the error is in the over.over.
  35.  
  36. --
  37. Alexander N. Krotoff        krotoff@such.srcc.msu.su
  38. Research Computer Center    tel: +7(095)939-2638
  39. Moscow State University        fax: +7(095)939-4430
  40. ---
  41. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  42.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  43.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  44.